package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TourTravelNotesTypeMapper;
import com.ruoyi.system.domain.TourTravelNotesType;
import com.ruoyi.system.service.ITourTravelNotesTypeService;

/**
 * 游记类型Service业务层处理
 * 
 * @author once
 * @date 2020-10-02
 */
@Service
public class TourTravelNotesTypeServiceImpl implements ITourTravelNotesTypeService 
{
    @Autowired
    private TourTravelNotesTypeMapper tourTravelNotesTypeMapper;

    /**
     * 查询游记类型
     * 
     * @param travelNotesId 游记类型ID
     * @return 游记类型
     */
    @Override
    public TourTravelNotesType selectTourTravelNotesTypeById(Long travelNotesId)
    {
        return tourTravelNotesTypeMapper.selectTourTravelNotesTypeById(travelNotesId);
    }

    /**
     * 查询游记类型列表
     * 
     * @param tourTravelNotesType 游记类型
     * @return 游记类型
     */
    @Override
    public List<TourTravelNotesType> selectTourTravelNotesTypeList(TourTravelNotesType tourTravelNotesType)
    {
        return tourTravelNotesTypeMapper.selectTourTravelNotesTypeList(tourTravelNotesType);
    }

    /**
     * 新增游记类型
     * 
     * @param tourTravelNotesType 游记类型
     * @return 结果
     */
    @Override
    public int insertTourTravelNotesType(TourTravelNotesType tourTravelNotesType)
    {
        return tourTravelNotesTypeMapper.insertTourTravelNotesType(tourTravelNotesType);
    }

    /**
     * 修改游记类型
     * 
     * @param tourTravelNotesType 游记类型
     * @return 结果
     */
    @Override
    public int updateTourTravelNotesType(TourTravelNotesType tourTravelNotesType)
    {
        return tourTravelNotesTypeMapper.updateTourTravelNotesType(tourTravelNotesType);
    }

    /**
     * 批量删除游记类型
     * 
     * @param travelNotesIds 需要删除的游记类型ID
     * @return 结果
     */
    @Override
    public int deleteTourTravelNotesTypeByIds(Long[] travelNotesIds)
    {
        return tourTravelNotesTypeMapper.deleteTourTravelNotesTypeByIds(travelNotesIds);
    }

    /**
     * 删除游记类型信息
     * 
     * @param travelNotesId 游记类型ID
     * @return 结果
     */
    @Override
    public int deleteTourTravelNotesTypeById(Long travelNotesId)
    {
        return tourTravelNotesTypeMapper.deleteTourTravelNotesTypeById(travelNotesId);
    }
}
